﻿using System;
using System.Configuration;

namespace Alex.Library.Log.Configuration
{
    /// <summary>
    /// 控制台日志前景色元素
    /// </summary>
    public sealed class ForegroundColorElement : ConfigurationElement
    {
        /// <summary>
        /// Debug颜色
        /// </summary>
        [ConfigurationProperty("debug", IsRequired = false)]
        public ConsoleColorContentElement Debug
        {
            get
            {
                return (ConsoleColorContentElement)this["debug"];
            }
        }

        /// <summary>
        /// Info颜色
        /// </summary>
        [ConfigurationProperty("info", IsRequired = false)]
        public ConsoleColorContentElement Info
        {
            get
            {
                return (ConsoleColorContentElement)this["info"];
            }
        }

        /// <summary>
        /// Warn颜色
        /// </summary>
        [ConfigurationProperty("warn", IsRequired = false)]
        public ConsoleColorContentElement Warn
        {
            get
            {
                return (ConsoleColorContentElement)this["warn"];
            }
        }

        /// <summary>
        /// Error颜色
        /// </summary>
        [ConfigurationProperty("error", IsRequired = false)]
        public ConsoleColorContentElement Error
        {
            get
            {
                return (ConsoleColorContentElement)this["error"];
            }
        }

        /// <summary>
        /// Fatal颜色
        /// </summary>
        [ConfigurationProperty("fatal", IsRequired = false)]
        public ConsoleColorContentElement Fatal
        {
            get
            {
                return (ConsoleColorContentElement)this["fatal"];
            }
        }
    }
}
